package com.yugu.park.enums;

import com.google.common.collect.Maps;

import java.util.Arrays;
import java.util.Map;

/**
 * 序列类型
 * @author 31631
 *
 */
public enum SystemEnum {
    ADMINSSION_RECORD_("ADMINSSION_RECORD_", "是否已进入"),
    ;
    private String code;
    private String desc;

    private static final Map<String, SystemEnum> MAPS = Maps.uniqueIndex(
            Arrays.asList(SystemEnum.values()),
            SystemEnum::getCode
    );

    public static SystemEnum get(String code) {
        return MAPS.get(code);
    }


	private SystemEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
    
    
}
